package com.baosight.risk.web.xtri;

import com.baosight.risk.api.xtri.IXtriTempActiveService;
import com.baosight.risk.api.xtri.IXtriTempRiskService;
import com.baosight.risk.base.controller.BaseController;
import com.baosight.risk.common.annotation.Log;
import com.baosight.risk.common.enums.IntegralType;
import com.baosight.risk.common.result.AjaxResult;
import com.baosight.risk.service.xtri.entity.TXtriTempActive;
import com.baosight.risk.service.xtri.entity.TXtriTempRisk;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/xtri/tempActive")
public class XtriTempActiveController extends BaseController {

    @Autowired
    private IXtriTempActiveService xtriTempActiveService;

    /**
     * 关键控制活动查询
     *
     * @param
     * @return
     */
    @RequestMapping("queryTempActive")
    @ApiOperation("关键控制活动查询")
    @Log(integralType = IntegralType.Type2)
    public AjaxResult queryTempActive(TXtriTempActive active) {
        log.info("关键控制活动查询");
        return getResultPage(xtriTempActiveService.queryTempActive(active));
    }


}